package com.example.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.Admins;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminsDao extends BaseMapper<Admins> {

    // 登录验证接口
    @Select("SELECT * FROM admins WHERE admin_code = #{adminCode} AND password = #{password}")
    Admins getAdminsByCodeByPass(Admins admins);
}
